/**
 * 跨标签通信
 */
import React, { useState, useEffect } from 'react';
import styles from './index.less';
import { sendMsg, listenMsg } from './localEvent';

export default class extends React.Component {
  componentDidMount = () => {
    setInterval(() => {
      sendMsg('init', { name: '小明' });
    }, 1000);
  };
  render() {
    return <div>发消息</div>;
  }
}
